package com.aliyun.demo;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.live.model.v20161101.*;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;
import org.junit.Test;

public class LiveBps {
    private static String regionId = System.getenv("regionId");
    private static String accessKeyId = System.getenv("accessKeyId");
    private static String secret = System.getenv("secret");
    private static String domainName = "play-live-one-sz.alivecdn.com";
    private static DefaultAcsClient client;
    static {
        IClientProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, secret);
        client = new DefaultAcsClient(profile);
    }

    @Test
    public void shouldCheckDescribeLiveDomainBpsData(){
        DescribeLiveDomainBpsDataRequest request = new DescribeLiveDomainBpsDataRequest();
//        request.setActionName();
        // regionId 废弃
        request.setRegionId("");
    }

    @Test
    public void shouldCheckDescribeLiveDomainRealTimeBpsData(){
        DescribeLiveDomainRealTimeBpsDataRequest request = new DescribeLiveDomainRealTimeBpsDataRequest();
//        request.setActionName();
        request.setOwnerId(0L);
        // regionId 废弃
        request.setRegionId("");
    }

    @Test
    public void shouldCheckDescribeLiveDomainRealTimeTrafficData(){
        DescribeLiveDomainRealTimeTrafficDataRequest request = new DescribeLiveDomainRealTimeTrafficDataRequest();
//        request.setActionName();
        request.setOwnerId(0L);
        // regionId 废弃
        request.setRegionId("");
    }

    @Test
    public void shouldCheckDescribeLiveDomainRecordData(){
        DescribeLiveDomainRecordDataRequest request = new DescribeLiveDomainRecordDataRequest();
//        request.setActionName();
        request.setOwnerId(0L);
        // regionId 废弃
        request.setRegionId("");
    }

    @Test
    public void shouldCheckDescribeLiveDomainSnapshotData(){
        DescribeLiveDomainSnapshotDataRequest request = new DescribeLiveDomainSnapshotDataRequest();
//        request.setActionName();
        request.setOwnerId(0L);
        // regionId 废弃
        request.setRegionId("");
    }

    @Test
    public void shouldCheckDescribeLiveDomainTrafficData(){
        DescribeLiveDomainTrafficDataRequest request = new DescribeLiveDomainTrafficDataRequest();
//        request.setActionName();
        request.setOwnerId(0L);
        // regionId 废弃
        request.setRegionId("");
    }

    @Test
    public void shouldCheckDescribeLiveDomainTranscodeData(){
        DescribeLiveDomainTranscodeDataRequest request = new DescribeLiveDomainTranscodeDataRequest();
//        request.setActionName();
        request.setOwnerId(0L);
        // regionId 废弃
        request.setRegionId("");
    }

    @Test
    public void shouldCheckDescribeLiveStreamHistoryUserNum(){
        DescribeLiveStreamHistoryUserNumRequest request = new DescribeLiveStreamHistoryUserNumRequest();
//        request.setActionName();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
    }

    @Test
    public void shouldCheckDescribeLiveDomainRealTimeHttpCodeData(){
        DescribeLiveDomainRealTimeHttpCodeDataRequest request = new DescribeLiveDomainRealTimeHttpCodeDataRequest();
//        request.setActionName();
        request.setOwnerId(0L);
        // regionId 废弃
        request.setRegionId("");
    }
}
